package inPutStreamAndoutPutStream;

import java.io.File;

public class test4 {
    public static void main(String[] args) {
        File file=new File("abc/321/aaa");
        if(file.exists()){
            boolean delete = file.delete();
            System.out.println("文件删除成功："+delete);
        }

        File dir=new File("abc/321");
        if (dir.exists()){
            boolean delete = dir.delete();
            System.out.println("目录删除成功："+delete);
        }
    }
}
